package com.zl.dao;

import com.zl.beans.NewsLabel;
import com.zl.beans.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewsLabelDao {
    int selectRows();

    int selectChildRows(int id);

    List<NewsLabel> selectCurrentPageNewsLabels(Page page);

    List<NewsLabel> selectLabels();

    void insertLabel(@Param("labelName") String labelName, @Param("labelContent") String labelContent, @Param("pid") Integer pid);

    void delectLabelById(Integer id);

    List<NewsLabel> selectChild(Integer id);

    NewsLabel findLabelById(Integer id);

    void changeLabel(@Param("labelName") String labelName, @Param("labelContent") String labelContent, @Param("id") Integer id, @Param("pid") Integer pid);
}
